Modal dialog actions might be triggered during display closing, and in such
cases we should just ignore the requests.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/746
guint32 timestamp,
MetaModalOptions options)
{
+ if (!meta_display_get_compositor (global->meta_display))
+ return FALSE;
+
/* Make it an error to call begin_modal while we already
* have a modal active. */
if (global->has_modal)
shell_global_end_modal (ShellGlobal *global,
guint32 timestamp)
{
+ if (!meta_display_get_compositor (global->meta_display))
+ return;
+
if (!global->has_modal)
return;